package com.beteng.su.betengsu.ui.fragment.task;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.beteng.su.betengsu.R;

import butterknife.OnClick;
import cn.droidlover.xdroid.base.XFragment;

/**
 * Created by chenzhimin on 2017/9/6.
 */

public class TaskMainFragment extends XFragment {

    public static TaskMainFragment newInstance() {


        Bundle args = new Bundle();

        TaskMainFragment fragment = new TaskMainFragment();
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public void initData(Bundle savedInstanceState) {

    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_task;
    }

    @OnClick({R.id.task_order_search, R.id.task_order_input})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.task_order_search:
                OrderSearchActivity.start(context);
                break;
            case R.id.task_order_input:
                OrderInputActivity.start(context);
                break;
        }
    }
}
